package org.example.Context;

public class ExecutionTask implements Runnable{
    private QueryAction db = new QueryFromDBAction();
    private QueryAction http = new QueryFromHttpAction();

    @Override
    public void run() {
        final Context context = ActionContext.getActionContext().getContext();
        db.execute();
        System.out.println("id:"+context.getId());
        http.execute();
        System.out.println("name:"+context.getName());
    }
}
